package quickcore.webview;

import android.webkit.DownloadListener;

public class WebViewDownloadImpl implements DownloadListener{
    private WebViewListener webViewListener;
    public WebViewDownloadImpl(WebViewListener webViewListener) {
        this.webViewListener = webViewListener;
    }

    @Override
    public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, long contentLength) {
        webViewListener.onDownload(url);
    }
}
